package com.itheima.date8;

import java.time.Duration;
import java.time.LocalTime;

public class Demo07 {


    public static void main(String[] args) {
        LocalTime chi = LocalTime.of(12, 10, 10);
        LocalTime now = LocalTime.now();
        Duration duration = Duration.between(chi, now);
        System.out.println(duration);

        System.out.println(duration.toDays());
        System.out.println(duration.toSeconds());
        System.out.println(duration.toMillis());
        System.out.println(duration.toNanos());


    }
}
